package cn.silver.module.message.controller;


import cn.silver.framework.mybatis.controller.BaseController;
import cn.silver.module.message.bean.MessageBean;
import cn.silver.module.message.domain.MsgMessageRecord;
import cn.silver.module.message.param.MessageParam;
import cn.silver.module.message.service.IMsgMessageRecordService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 消息推送记录Controller
 *
 * @author Silver.Zhou
 */

@RestController
@RequiredArgsConstructor
@Tag(name = "消息管理-消息通知-消息发送记录")
@RequestMapping("/msg/message/record")
public class MsgMessageRecordController extends BaseController<IMsgMessageRecordService, MsgMessageRecord, MessageParam, MessageBean> {

    @Override
    @Resource
    public void setBaseService(IMsgMessageRecordService baseService) {
        this.setCode("msg:message:record");
        this.setPermission("msg:message");
        this.setTitle("消息管理-消息通知-消息发送记录");
        this.baseService = baseService;
    }
}
